<template>
  <div>
    <!-- 作用域插槽:带有子组件数据的插槽 -->
    <slot name="abc" :money="money"></slot>
    <p>{{ value }}</p>
    <button @click="$emit('input', 'hi')">按钮</button>
  </div>
</template>

<script>
export default {
  // props:['msg'],
  props: {
    value: {
      type: [String, Number],
      // type: String,
      required: true,
      // default:'abc',
    },
  },
  data() {
    return {
      money: 200,
    };
  },
};
</script>

<style scoped></style>
